adTempus API
|
Specifies another DaySpecification from which to calculate the target date.
__property IDaySpecification* OccurrenceBase;
IDaySpecification* OccurrenceBase;
Property OccurrenceBase() As IDaySpecification*
The Occurrence is used only when the SpecificationType is dstFloatingOffset. See the Overview for a discussion of these values.
If the OccurrenceBase is Null, the target date is calculated relative to the beginning of the selected month(s). If the OccurrenceBase is set, the target date is calculated relative to the date determined by that DaySpecification.
For example, if you wanted to have a job execute on the Monday after Christmas, you would first create a DaySpecification to calculate Christmas. You would then create a second DaySpecification with a SpecificationType of dstFloatingOffset, an Occurrence of otFirst, wkdMOnday selected for the Weekdays, and the OccurrenceBase set to the DaySpecification that represents Christmas.
... dim ChristmasSpec as DaySpecification dim NearestBusinessDaySpec as DaySpecification ChristmasSpec=theScheduler.CreateObject(CID_DaySpecification) NearestBusinessDaySpec=theScheduler.CreateObject(CID_DaySpecification) ChristmasSpec.SpecificationType=dstSpecifiedDays ChristmasSpec.Months(12)=True ChristmasSpec.Days(25)=True NearestBusinessDaySpec.SpecificationType=dstFloatingOffset NearestBusinessDaySpec.Occurrence=otFirst NearestBusinessDaySpec.Weekdays(wkdMonday)=True NearestBusinessDaySpec.OccurrenceBase=ChristmasSpec ...
adTempus API Reference version 3.0.0.0, revised 10/30/2008
|